(function($) {
	'use strict';

	$(function() {
		var $fullText = $('.admin-fullText');

		$('#admin-fullscreen').on('click', function() {
			$.AMUI.fullscreen.toggle();
		});

		$(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
			$fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
		});

		// 适应高度
		$('.admin-main .admin-content').css('min-height', $('.admin-main').height() + 'px');

		// 关闭自动完成
		$('input:text').attr('autocomplete', 'off');
	});

})(jQuery);
